Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't swallow errors in URL replacements promises. #2509

Merged
merged 1 commit into from
Mar 9, 2016

Conversation

cramforce
Copy link
Member

And unifies the behavior across sync and non-sync replacements.
Both now replace with the empty string and report the error to the console and the server where applicable. It would have been an option to fail the URL generation instead (previous that was the behavior for sync errors, but I believe that erring on the side of producing a URL is the right thing to do.

Fixes #2418

And unifies the behavior across sync and non-sync replacements.
Both now replace with the empty string and report the error to the console and the server where applicable. It would have been an option to fail the URL generation instead (previous that was the behavior for sync errors, but I believe that erring on the side of producing a URL is the right thing to do.

Fixes ampproject#2418
@erwinmombay
Copy link
Member

@cramforce LGTM

cramforce added a commit that referenced this pull request Mar 9, 2016
Don't swallow errors in URL replacements promises.
@cramforce cramforce merged commit 0c0fa71 into ampproject:master Mar 9, 2016
@cramforce cramforce deleted the replacement-error branch March 9, 2016 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants